<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="apple-mobile-web-app-capable" content="yes" />    
    
  <link href="../../css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/bootstrap-responsive.min.css" rel="stylesheet" />
    
    
    <link href="../../css/font-awesome.css" rel="stylesheet" />
    
    <link href="../../css/adminia.css" rel="stylesheet" /> 
    <link href="../../css/adminia-responsive.css" rel="stylesheet" /> 
    
    <link href="../../css/pages/dashboard.css" rel="stylesheet" /> 
    
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
	
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>

<body>
	
<div class="navbar navbar-fixed-top">
	
	<div class="navbar-inner">
		
		<div class="container">
			
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> 
				<span class="icon-bar"></span> 
				<span class="icon-bar"></span> 
				<span class="icon-bar"></span> 				
			</a>
			
			<a class="brand" href="#">和诚汽车</a>
			
			<div class="nav-collapse">
			
				<ul class="nav pull-right">
	
					
					<li class="divider-vertical"></li>
					
					<li class="dropdown">
						
						<a data-toggle="dropdown" class="dropdown-toggle " href="#">
							设置 <b class="caret"></b>							
						</a>
						
						<ul class="dropdown-menu">
							<li>
								<a href="/pages/group/modifypassword.jsp"><i class="icon-user"></i> 修改密码  </a>
							</li>
							<li>
								<a href="/pages/group/modifyInfo.jsp"><i class="icon-user"></i> 修改个人信息  </a>
							</li>
							<li>
								<a href="/user/logout"><i class="icon-off"></i> 退出</a>
							</li>
						</ul>
					</li>
				</ul>
				
			</div> <!-- /nav-collapse -->
			
		</div> <!-- /container -->
		
	</div> <!-- /navbar-inner -->
	
</div> <!-- /navbar -->




<div id="content">
	
	<div class="container">
		
		<div class="row">
			
			<div class="span3">
				
				<div class="account-container">
				
					<div class="account-avatar">
						<img src="../../images/logo.jpg" alt="" class="thumbnail" />
					</div> <!-- /account-avatar -->
				
					<div class="account-details">
					
						<span class="account-name">${admin.username}</span>
						
						<span class="account-role">${admin.company}</span>
						
						<span class="account-actions">
							
						</span>
					
					</div> <!-- /account-details -->
				
				</div> <!-- /account-container -->
				
				<hr />
				
				<ul id="main-nav" class="nav nav-tabs nav-stacked">
					
				<li>
						<a href="/user/group">
							<i class="icon-home"></i>
							权限管理 			
						</a>
					</li>
					
					<li class="active">
						<a href="/user/groupStatistics">
							<i class="icon-pushpin"></i>
							统计管理
						</a>
					</li>
					
					<li>
						<a href="/commission/show?type=2">
							<i class="icon-th-list"></i>
							分销规则	
						</a>
					</li>
					<li>
						<a href="/customer/list">
							<i class="icon-signal"></i>
							客户信息管理
						</a>
					</li>
					<li>
						<a href="/customer/listPeifuAll">
							<i class="icon-signal"></i>
							赔付管理
						</a>
					</li>
				</ul>	
				
				
				
				<hr />
				
				<div class="sidebar-extra">
					<p></p>
				</div> <!-- .sidebar-extra -->
				
				<br />
		
			</div> <!-- /span3 -->
			
			
			
			<div class="span9">
				
				<h1 class="page-title">
					<i class="icon-th-large"></i>
					统计	
										
				</h1>
				<div class="row">
					<div class="span9">
				<!-- 详细开始 -->
				<div id="userdetail" style="">
					<div class="widget-header">
						<i class="icon-th-list"></i>
						<h3>
							单数统计
						</h3>
					</div> <!-- /widget-header -->
					<div class="widget-content">
						<div class="tabbable">
						<ul class="nav nav-tabs">
						  <li class="active">
						    <a href="/user/groupStatistics" >公司统计</a>
						  </li>
						  <li><a href="/customer/companyCommission" >集团员工统计</a></li>
						  <li><a href="/customer/worker4group" >分公司员工统计</a></li>
						</ul>
						
						<br />
							<div class="tab-content">
								<div class="tab-pane active" id="1">
								<form id="edit-profile" class="form-horizontal" action="/user/groupStatistics" method="post">
									<div class="control-group">											
										<div class="controls" style="margin-left:30px">
											<label style="display:inline">下单时间:</label>
											<input type="text" name="startTime" class="input-medium" value="${startTime}" onclick="setday(this)"/>-
											<input type="text" name="endTime" class="input-medium" value="${endTime}" onclick="setday(this)"/>
											<button type="submit" class="btn btn-primary">统计</button>
										</div> <!-- /controls -->				
									</div> <!-- /control-group -->
								</form>
								<form id="edit-profile" class="form-horizontal" action="/user/export" method="post">
									<div class="control-group" style="float:right;margin-top:-45px;">											
										<div class="controls" style="margin-left:30px">
											<input type="hidden" name="startTime" class="input-medium" value="${startTime}"/>
											<input type="hidden" name="endTime" class="input-medium" value="${endTime}"/>
											<button type="submit" class="btn btn-primary">导出</button>
										</div> <!-- /controls -->				
									</div> <!-- /control-group -->
								</form>
						<table class="table table-striped table-bordered">
							<thead>
								<tr>
									<th>公司名称</th>
									<th>开始时间</th>
									<th>结束时间</th>
									<th>200元单数</th>
									<th>400元单数</th>
									<th>1000元单数</th>
									<th>成交金额</th>
									<th>公司所得佣金</th>
								</tr>
							</thead>
							<tbody>
							<c:forEach items="${companyList}" var="data" varStatus="status">
								<tr>
									<td>${data.company}</td>
									<td>${data.startTime}</td>
									<td>${data.endTime}</td>
									<td>${data.count200}</td>
									<td>${data.count400}</td>
									<td>${data.count1000}</td>
									<td>${data.totalprice}</td>
									<td>${data.totalCommission}</td>
								</tr>
							</c:forEach>
							</tbody>
						</table>
								
								</div>
							</div>
						</div>
						</div> <!-- /widget-content -->
						</div>
						</div> <!-- /widget -->
				<!-- 详细结束 -->
	</div> <!-- /span9 -->
	
	</div> <!-- /row -->
				
			</div> <!-- /span9 -->
			
			
		</div> <!-- /row -->
		
	</div> <!-- /container -->
	
</div> <!-- /content -->
					
	
<div id="footer">
	
	<div class="container">				
		<hr />
		<p></p>
	</div> <!-- /container -->
	
</div> <!-- /footer -->


    

<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="../../js/util/jquery-1.7.2.min.js"></script>
<script src="../../js/util/bootstrap.js"></script>
<script src="../../js/util/DatePicker.js"></script>
  </body>
</html>